package cho114366.basic;

public class Ch04_08 {

	public static void main(String[] args) {
		SampleClass aClass = new SampleClass();
		int num = 15;
		aClass.addAndStore(num, 10);
		System.out.println(num);
		
		System.out.println(aClass.i);
	}

}
class SampleClass{
	int i;
	public void addAndStore(int i,int j){
	 this.i=i+j;
		
	}
}
